package com.atelier.plugin.database.domain;

import com.intellij.openapi.project.Project;
import lombok.Data;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

@Data
@Getter
public class TableInfo {
    private String tableName;
    private String remark;
    private List<ColumnInfo> columns;

    public TableInfo() {
    }

    public TableInfo(String tableName) {
        this.tableName = tableName;
        this.columns = new ArrayList<>();
    }

    public void addColumnInfo(ColumnInfo columnInfo) {
        columns.add(columnInfo);
    }
    public static TableInfo getInstance(Project project){
        return new TableInfo();
    }
}

